package cn.y.operation.application.web.service;

import cn.y.operation.application.web.entity.AttendRecord;
import cn.y.operation.application.web.mapper.AttendRecordMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: AttendRecordServiceImpl
 * @author: 叶子豪
 * @create: 2021-04-14 16:06
 */
@Service
public class AttendRecordServiceImpl implements AttendRecordService /*extends ServiceImpl<AttendRecordMapper, AttendRecord>*/ {
    @Resource
    private AttendRecordMapper attendRecordMapper;

    @Override
    public AttendRecord getAttendRecordByID(int id) {
        return attendRecordMapper.selectById(id);
    }

    @Override
    public List<AttendRecord> getAttendRecordList(AttendRecord attendRecord) {
        List<AttendRecord> listByBase = attendRecordMapper.getListByBase(attendRecord);
        return listByBase;
    }


}
